<div bsModal #printModal="bs-modal" (onShown)="onShown()" class="modal fade" tabindex="-1" role="dialog"
  aria-labelledby="printModal" aria-hidden="true" [config]="{backdrop: 'static'}">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">
          <span>打单</span>
        </h4>
        <button type="button" class="close" (click)="close()">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div id='printDiv'> <img id="printImg" src="" style=" width: 600px;height: 880px;" /></div>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="close()">取消</button>
        <button id='btnPrint' type="button" (click)="print()" class="btn btn-primary"><i class="fa"></i> <span>打印</span></button>
      </div>
    </div>
  </div>
</div>